Skip to content

feat(portfolio): add decision queue digest#72

Merged
saagpatel merged 1 commit into
mainfrom
codex/portfolio-truth-canonical-remotes-20260619
Jun 19, 2026
Merged

feat(portfolio): add decision queue digest#72
saagpatel merged 1 commit into
mainfrom
codex/portfolio-truth-canonical-remotes-20260619

Conversation

@saagpatel

Copy link
Copy Markdown
Owner

What

Add a bounded portfolio decision queue derived from the canonical portfolio truth snapshot and surface it in the weekly command-center digest.

Why

Default attention is a watch set, not a decision list. The weekly digest needed a narrower report-only queue so active-product/active-infra projects do not trigger context/doc refresh work unless current truth carries a concrete decision signal.

Review Of What Was Built

  • Added portfolio_decision_queue with a strict decision_queue_v1 contract.
  • Included security follow-up and explicit decision-needed items, capped to five entries.
  • Surfaced the queue and counts in the weekly command-center JSON/Markdown.
  • Verified default attention alone does not create decision queue work.

Cleanup Review

  • Left the existing path-attention and automation candidate surfaces intact.
  • Did not regenerate portfolio truth or mutate generated output artifacts.
  • Did not broaden automation authority; this remains report-only.

Verification Summary

  • PYTHONDONTWRITEBYTECODE=1 uv run pytest tests/test_portfolio_decision_queue.py tests/test_weekly_command_center.py -q -> 10 passed.
  • PYTHONDONTWRITEBYTECODE=1 uv run pytest tests/test_portfolio_automation.py tests/test_weekly_command_center.py tests/test_portfolio_decision_queue.py -q -> 29 passed.
  • uv run ruff check src/portfolio_decision_queue.py src/weekly_command_center.py tests/test_portfolio_decision_queue.py tests/test_weekly_command_center.py -> passed.
  • uv run ruff check . -> passed.
  • PYTHONDONTWRITEBYTECODE=1 uv run pytest -q -> 2462 passed, 2 skipped, 2 existing warnings.

Shipped Summary

The branch now separates portfolio watch-set attention from a concrete decision queue in the weekly command-center artifact.

Next Phase

After merge, refresh the local portfolio/coordination check from Personal Ops and confirm the GithubRepoAuditor repo-posture blocker clears.

Remaining Roadmap

  • Continue treating output/portfolio-truth-latest.json as the canonical truth surface.
  • Keep future weekly digest additions report-only unless an explicit approval lane expands authority.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e136b72397

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +130 to +132
key=lambda item: (
decision_rank.get(item.decision_type, 9),
item.project.lower(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Prioritize security queue by alert severity before capping

When more than five projects carry security_risk, every security item receives the same rank here and is then ordered only by project name before queue[:MAX_DECISION_QUEUE_ITEMS] is applied. That means five alphabetically earlier repos with one high alert can push a later repo with open critical alerts out of the weekly decision queue entirely, even though the digest is meant to surface security follow-up decisions. Include the Dependabot critical/high counts in the sort key for security items before falling back to the name.

Useful? React with 👍 / 👎.

@saagpatel saagpatel merged commit 07b9f6b into main Jun 19, 2026
3 checks passed
@saagpatel saagpatel deleted the codex/portfolio-truth-canonical-remotes-20260619 branch June 19, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant